package com.itheima.oopadvanced.api_objects;

import java.util.Objects;

/**
 * @author Anomaly
 * @date 2022/12/28 18:50
 */
public class Test {
    public static void main(String[] args) {
        String s1 = "root";
        String s2 = "root2";
        String s3 = null;
        System.out.println(s1.equals(s2));
        System.out.println(Objects.equals(s3, s2));
        System.out.println(Objects.isNull(s3));
    }
}
